<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    
<%@ tagliburi="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
 <style>
   table{
   width:400px;
   }
   table tr{
   height:80px;
   }
   table tr td{
   border:1px solid blue;
   }
   
   table tr:nth-child(odd){
     background:rgba(255,255,0,0.3);
   }
  table tr:nth-child(even){
     background:rgba(255,255,0,0.3);
   }
 
 </style>


<body>
    
    <form action="xmservlet?flag=query" method="post">
       <input type="submit" value="查询">
    </form>
     <br><br>
    <table>
     <tr>
     <td>词条</td>
      <td>项目名</td>
      <td>项目内容</td>
      <td>参与学生的学号</td>
      <td>参与教师的工号</td>
      <td>操作</td>
     </tr>


<c:forEach items="${xmdata}" var="xm">
      <tr>        
        <td> ${xm.p_id }</td>
        <td>${xm.p_name}</td>
        <td>${xm.p_report }</td>
        <td>${xm.s_num}</td>
         <td>${xm.t_num}</td>
        <td><a href="xmservlet?flag=del&p_id=${xm.p_id }">删除</a></td>
       </tr>
     </c:forEach>
    
        
          </table>
</body>
</html>